package zct.proj.equipModel;

import android.graphics.Path;
import android.graphics.Point;

public class DHANInfo extends BaseInfo {

	/**
	 * 灯或按钮轮廓
	 */
	private Path skeleton;
	
	/**
	 * 灯心坐标
	 */
	private Point pt;
	
	/**
	 * 设备类型
	 */
	private int type;
	
	private int radius;
	
	public Path getSkeleton() {
		return skeleton;
	}
	
	public Point getPoint() {
		return pt;
	}
	
	public int getRaidus() {
		return radius;
	}
	
	public DHANInfo(int sbType, Path path, Point pt) {
		skeleton = path;
		this.pt = pt;
		type = sbType;
	}
	
	public DHANInfo(int sbType, Path path) {
		skeleton = path;
		type = sbType;
	}
	
	public DHANInfo(int sbType, Point pt, int radius) {
		this.pt = pt;
		type = sbType;
		this.radius = radius;
	}
	
//	@Override
//	public void drawEquipment(Canvas canvas, int x, int y) {
//		
//		if (type == Const.TYPE_BTN_SQ) {
//			defPaint.setStrokeWidth(4);
//		} else {
//			defPaint.setStrokeWidth(2);
//		}
//		
//		if (type == Const.TYPE_BTN_LCAN
//				|| type == Const.TYPE_BTN_DCBS
//				|| type == Const.TYPE_BTN_DCAN
//				|| type == Const.TYPE_BTN_DQ
//				|| type == Const.TYPE_BTN_SQ) {
//			// 灯或按钮 列车按钮  道岔表示  调车按钮  单圈   双圈
//			canvas.drawCircle(pt.x + x, pt.y + y, radius, defPaint);
//		} else if (type == Const.TYPE_BTN_FX) {
//			// 灯或按钮 方形
//			canvas.drawRect(pt.x + x, pt.y + y, pt.x + x + radius, pt.y + y + radius, defPaint);
//		} else if (type == Const.TYPE_BTN_ARROW || type == Const.TYPE_BTN_HALFARROR) {
//			// 灯或按钮 箭头
//			Path dp = new Path(skeleton);
//			dp.offset(x, y);
//			canvas.drawPath(dp, defPaint);
//		}
//	}
}
